package ooday05_vis;
/*复杂版季节枚举*/
public enum Seasons {
    //public static final Seasons SPRING =new Seasons("春天","暖和");
    SPRING("春天","暖和"),
    SUMMER("夏天","热"),
    AUTUMN("秋天","凉爽"),
    WINTER("冬天","冷");
    private String seasonName;
    private String seasonDesc;
    Seasons(String seasonName,String seasonDesc){//枚举的构造方法默认为private(并且只能是私有的)
        this.seasonName=seasonName;
        this.seasonDesc=seasonDesc;

    }

    public String getSeasonName(){return seasonName;}
    public void setSeasonName(String seasonName){this.seasonName=seasonName;}
    public String getSeasonDesc(){return seasonDesc;}
    public void setSeasonDesc(String seasonDesc){this.seasonDesc=seasonDesc;}
}
